import time
import datetime

from Web.Service import WebBaseService,XssService,SessionService

def getUserLastTalktimeDiffSec():
    currentUser = SessionService.get( "user" )

    t = time.time( )
    A = int( SessionService.get( "user" ).lasttalk )
    print(int(t)-int(A))
    return int(t)-int(A)

if __name__ == '__main__':
    t = time.time()

    print (t)                       #原始时间数据
    print (int(t)-SessionService.get( "user" ))                  #秒级时间戳